Issue 965 redis databases

Closes #965