redis database refactor. added config files management