Fixed code section that was skipping commit

Fixed non-confirmation commit code. It was doing a rollback instead of commit as it was written this way for initial testing