Added utility functions to dbutil for db detection and version detection.
Added utility functions to dbutil for db detection and version detection.

We'll need these for upgrading and various other things.

connectordb/connectordb,connectordb/connectordb,connectordb/connectordb,connectordb/connectordb,connectordb/connectordb