put foreign keys back