Fix broken SQL queries