populate and query for peerdb and no peerdb, no bulk query