prepare mongo and upload