modify data to mongodb