'Performs all the steps neede to completely setup a database instance'

def setup(self):

    if (self.admin_connection is None):
        logging.error('Failed    to    logon    as    the    database    admin    user')
        return False
    self.admin_connection.begin()
    if (not self.create_instance()):
        self.admin_connection.rollback()
        return False
    if (not self.grant_privileges()):
        self.admin_connection.rollback()
        return False
    self.admin_connection.commit()
    return True
