switch from redis to mongodb