Jdbc support

This diff is painful...But the tests pass.
Yes, the whole override is unnecessary