switch between mongo and in-memory store with MONGO env variable
merge