Maybe we should create the metadata first and the table second? Wouldn't want the tables to exist without metadata.