String dbsetupSchemaXmlFile = extractDatabaseXmlFile("db-schema-combined.xml", props, serverDetails, logDir);
String dbsetupDataXmlFile = extractDatabaseXmlFile("db-data-combined.xml", props, serverDetails, logDir);
// first uninstall any old existing schema, then create the tables then insert the data
DBSetup dbsetup = new DBSetup(dbUrl, userName, password);
dbsetup.uninstall(dbsetupSchemaXmlFile);
dbsetup.setup(dbsetupSchemaXmlFile);
dbsetup.setup(dbsetupDataXmlFile, null, true, false);
} catch (Exception e) {
LOG.fatal("Cannot install the database schema - the server will not run properly.", e);
throw e;