Jdbc support

This diff is painful...But the tests pass.
Oh, so I can remove this override, sweet.