adding SQL queries