checkDbType function

Check the database type.