Database transaction helper function on connection. Begin, Commit, Rollback.