porting from mongodb to cloudant and other bug fixes
forgot sample csv