fix to correct logging of database deletion