Doing something at commit/rollback