TableRecord createTableRecord(String name, Schema tableSchema, int indexedColumn)
			throws IOException {

		// Create new table record
		TableRecord tableRecord = new TableRecord(nextTableNum++, name, tableSchema, indexedColumn);
		table.putRecord(tableRecord.getRecord());

		// Update master root which may have changed
		dbParms.set(DBParms.MASTER_TABLE_ROOT_BUFFER_ID_PARM, masterRecord.getRootBufferId());

		// Update tableRecord list
		TableRecord[] newList = new TableRecord[tableRecords.length + 1];
		System.arraycopy(tableRecords, 0, newList, 0, tableRecords.length);
		newList[tableRecords.length] = tableRecord;
		Arrays.sort(newList);
		tableRecords = newList;

		return tableRecord;
	}
Create a new table record and add to master table.
If this is an index table the name corresponds to the table which is
indexed.  This method should be invoked for index tables immediately
following the creation of the indexed table.
This method may only be invoked while a database transaction 
is in progress. 
@param name name of table.
@param tableSchema table schema
@param indexedColumn primary table index key column, or -1 for primary table
@return new table record
@throws IOException database IO error
Ghidra/Framework/DB/src/main/java/db/MasterTable.java