update exception handling on TraceDAO, TraceDAOImpl, UsageDAO, UsageDAOImpl and relevant test cases