changed ingest.xql to aggregate-ids.xql, implemented getNuds API