Added some autocommits to db connections