'Creates the database instance'

def create_instance(self):

    if (self.admin_connection is None):
        return False
    if self.exists():
        logging.info('Database    already    exists,    doing    nothing')
        return True
    cursor = self.admin_connection.cursor()
    try:
        cursor.execute(('CREATE    DATABASE    %s' % self.name))
    except (MySQLdb.ProgrammingError, MySQLdb.OperationalError):
        self.admin_connection.rollback()
        return False
    return True
