Changed cursor to connection for commit.