Save data to mongodb