map reduce scripts, updated mongoose verison