add example with mongo and in-memory provider