void setProgramName(String oldName, String newName) {
		lock.acquire();
		try {
			ModuleDB root = getModuleDB(ROOT_MODULE_ID);
			DBRecord rec = root.getRecord();
			rec.setString(ModuleDBAdapter.MODULE_NAME_COL, newName);
			moduleAdapter.updateModuleRecord(rec);
			treeMgr.updateTreeRecord(record);
			nameChanged(oldName, root);
		}
		catch (IOException e) {
			errHandler.dbError(e);
		}
		finally {
			lock.release();
		}
	}
Construct a program tree module manager
@param treeMgr program tree manager
@param rec program tree record
@param openMode the mode this adapter is to be opened for (CREATE, UPDATE, READ_ONLY, UPGRADE).
@param monitor task monitor
@throws IOException if a database IO error occurs
@throws CancelledException if monitor cancelled (upgrade case only)
@throws VersionException if opening an existing program tree and an underlying table 
schema version differs from the expected version.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/module/ModuleManager.java