replaced Redis with mongodb