Complete TraceDAO, UsageDAO implementation and relevent test cases