redis implementation for new db
old db related parts commented out
redis activated