queries are stored in SQL