added queries for tables, questions and choices