Add Redis Database Select logic