Automatic creation of database structure for HistoryManager