Implement materializeMainSchemaTable to get a first functional version