try to deduce database type from jdbc connection metadata