Added SQL to update "broken" foreign keys and autoincrement