Set AutoCommit to false during database reconnect if the connection got lost somehow.

Probably fixes YASP-263