make metadata storage pluggable

Can we check to make sure the sql mode being set works on all connections in the pool, and doesn't just apply to the first connection it is executed on?