csmAssemblyId = addAssembly(csmType);
csmAssemblyId = addAssembly(csmiType);
    public PopulateDb(String cmtType, String hnaType, String csmType,                      String experimentName,                      String exptId, String trialId, boolean createNew)        throws SQLException, IOException    {        if (cmtType == null) throw new IllegalArgumentException("null cmtType");        if (hnaType == null) throw new IllegalArgumentException("null hnaType");        if (csmType == null) throw new IllegalArgumentException("null csmType");        if (exptId == null) throw new IllegalArgumentException("null exptId");        if (trialId == null) throw new IllegalArgumentException("null trialId");        log = new PrintWriter(new FileWriter("PopulateDbQuery.log"));        dbp = DBProperties.readQueryFile(DATABASE, QUERY_FILE);        dbp.setDebug(true);        String database = dbp.getProperty("database");        String username = dbp.getProperty("username");        String password = dbp.getProperty("password");        String dbtype = dbp.getDBType();        String driverParam = "driver." + dbtype;        String driverClass = Parameters.findParameter(driverParam);        if (driverClass == null)            throw new SQLException("Unknown driver " + driverParam);        try {            Class.forName(driverClass);        } catch (ClassNotFoundException cnfe) {            throw new SQLException("Driver class not found: " + driverClass);        }        dbConnection = DBConnectionPool.getConnection(database, username, password);        stmt = dbConnection.createStatement();        updateStmt = dbConnection.createStatement();        this.exptId = exptId;        this.trialId = trialId;        substitutions.put(":cmt_type:", cmtType);        if (createNew) {            cloneTrial(hnaType, trialId, experimentName);            writeEverything = true;        } else {            cleanTrial(csmType, trialId);            writeEverything = false;        }        hnaAssemblyId = addAssembly(hnaType);        csmAssemblyId = addAssembly(csmType);        setAssemblyMatch();    }