change db from redis to mongo