refactoring for indexer and db_system package
fix cmake compilation