Refactored HistoryItem for database. The database still doesn't recognize the class.