added features for creating tables of domains and queries