proper deletion of database cache and proper log messages