map reduce reading input from mongodb done. Tested on local.