Fixes order of table creation
Adds license header