: name 'agenda_sql' is not defined