move redis to db