Added code so that auto commit is set to false globally