add a commit and change a cursor to a connection
small fix