refactor mongo call to query more than one entity at once