Проверить структуру таблицы _history
function CheckHistoryTable(aDataSource: string): integer;
aDataSource
0, если выполнено успешно, иначе < 0