added begin/commit/rollback callbacks [skip ci]