added support for RedisCloud and custom db numbers