Fix aura/sqlquery errors