First draft of Mapreduce with Mongodb