def METHOD_NAME(conn, connection_record):
    conn.execute('PRAGMA trusted_schema=OFF')
    conn.execute('PRAGMA temp_store=MEMORY')
    if foreign_keys:
        conn.execute('PRAGMA foreign_keys=ON')
    if orm_lockdown:
        conn.set_authorizer(authorizer_callback)