switching out to redis and postgres