Slight modifications to mongodb queries

Specifically, changed the timestamp query and mapreduce function