add support for odbc database type detection

until the database type becomes part of public API for Qt, we need
to include private support for detecting the database type of an
odbc driver ourselves