Refactorng all arch, add Redis database