Slight modifications to mongodb queries