added WIDGET_ID to History table in DB
tidied up HistoryAdapter
save widget_id on History record not in SharedPreferences