Added hook onAfter CRUD operation to a history table