added querying to new schema
added querying to new schema