Added database selection for redis.