first step in the JDBC refactor

* hat tip to @james_rth