refactoring and Development of core(viewer, db, modules)