Do not assume admin connection uses autocommit

Adds a function to control whether autocommit is on or off