Added code to actually use the redis 'database number' configuration setting.