enable database transaction