Some classes to keep track of the database operation history