Added pre/post hooks

added pre/post hooks for save, update and delete