JDBC love: pattern matching for table and column metadata calls. Also nu...

...merous other JDBC fixes.

Waiting for tests to turn blue, but I think it is good to go for review.