Write train and test set (mf, wf) to mongo