'Checks if the database instance exists'

def exists(self):

    try:
        MySQLdb.connect(user=self.admin, passwd=self.admin_password, db=self.name, host=self.host)
        return True
    except MySQLdb.OperationalError:
        return False
