Database autocommit connections

Follow up to #1854.

Add autocommit variants of withConnection.
Expose resetConnectionOnClose configuration for BoneCP.