Allow any driver instance to register on-connect queries

I'm writing a DB instrumentation library which needs to manipulate go drivers, so I can't use the builtin one.

This change lets me register commands to any driver instance, rather than just the builtin / default one.