data generation script - write to mongo