Updated commit method to reset autocommit to true for the adapter.