Execute matterhorn schema
Rearrange SQL dependencies