more migration towards ev_sql.lua