Fixed HistoryItem saving to DB and History purchase selection in UI.