implement DbService.queryGraph for a single graph and single graph data