nested document map/reduce with contact