change block from redis to mongodb