Implemented condition to set auto commit when run query