Entity changes logger

- Added entity logger for logging changes made to the database.