Added method dbExists to check whether database exists in server, used in constructor that passes a dbName Moved all the private methods to the beginning of methods section