add mongoose library to use mapReduce