Safety commit.
In manageEdxDb.py: carefully integrated dealing with directory level of tracking log files shifting. Hope I got all cases covered.