Made per-connection initial SQL queries customizable.

Fixes #97.