private CachedRowSet getNaryRelationshipData(List<NodeRelationship> nodeRels) throws MainException{
		List<String> fromTables = new ArrayList<String>();
		for(int i=0; i<nodeRels.size();i++){
			NodeRelationship rel = nodeRels.get(i);
			String relTable = rel.getTable1();
			if(!fromTables.contains(relTable)) fromTables.add(relTable);
			String table2 = rel.getTable2();
			if(!fromTables.contains(table2)) fromTables.add(table2);
		}
		CachedRowSet crs = dbCache.joinTables(fromTables, nodeRels, null);
		return crs;
	}