Refactoring db\index.js into controllers/redisController.js