def verify_core_schema(conn):
    'Function used to check whether Core schema exists and has correct ownership.'
    if (not query_schema_existence(conn, 'core')):
        raise DatabaseSchemaException("Missing schema 'core' in DB. Was dirbs-db install run successfully?")
    if (query_schema_ownership(conn, 'core') != 'dirbs_core_power_user'):
        raise DatabaseSchemaException("Schema 'core' is not owned by dirbs_core_power_user!")
Function used to check whether Core schema exists and has correct ownership.
def verify_core_schema(conn):
    
    if (not query_schema_existence(conn, 'core')):
        raise DatabaseSchemaException("Missing schema 'core' in DB. Was dirbs-db install run successfully?")
    if (query_schema_ownership(conn, 'core') != 'dirbs_core_power_user'):
        raise DatabaseSchemaException("Schema 'core' is not owned by dirbs_core_power_user!")