Added cleanup SQL queries.