Set sql_mode callback on connect instead of checkout

There's no need to set the sql_mode on every checkout of a
connection - once when the connection is created is sufficient.

Change-Id: If34db31d9646c9a75d591e556a7abcc0bf8a7ab1
Closes-Bug: #1288444
Merge "Set sql_mode callback on connect instead of checkout"