Allow for database selection for redis backend.

Currently, using a Redis backend will default to database 0. This change allows for the selection of different databases.