added better auto-detection of database types
added a new method to fetch the 'prettyType' of a database