Map reduce to generate user ids