Talk to mongodb to persist the data.