Split HistoryDatabse class to HistoryMySQL & HistoryHGL.