Changed to use insertMany to cut down the calls to MongoDB