wip on fetching and updating index database and ptag files