added features for creating tables of domains and queries

 added features for creating tables of domains and queries in the database