probably working, had to remove two ''alter table'' inputs cause the gave errors