fix unindexed mongo queries