changed brain from redis to mongodb