reads from mongo and runs the results