added querying and test queries to node code