finish HistoryDAO.java