save train data to mongoDB