implement real redis database