Some fixes, now insert into sequence tables