Added some "fail safe" behavior because on some boxes the database type
cannot be determined properly.