Adding redis database support;fixes found by e2e tests