Drop outdated temporary SQL queries.