log = CSMART.createLogger("org.cougaar.tools.csmart.core.db");
createLogger();
    public PDbBase()        throws SQLException, IOException    {      log = CSMART.createLogger("org.cougaar.tools.csmart.core.db");        if (logQueries)            pwlog = new PrintWriter(new FileWriter(getLogName()));        dbp = DBProperties.readQueryFile(QUERY_FILE);        try {            dbp.addQueryFile(RecipeComponent.RECIPE_QUERY_FILE);        } catch (FileNotFoundException e) {            // This is normal if a user has no separate recipe 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);        dbConnection.setAutoCommit(false);        stmt = dbConnection.createStatement();        updateStmt = dbConnection.createStatement();    }