Add Redis Database Select logic

It was changed so that database selective processing might be done at the time of Redis connection processing.