Wrap before/after save/delete in transactions