Add DataRepository.new with the ability to detect backend connection type (redis | memory)