Fixed table creation order so foreign key references work
Version updates for deploy