added foreign keys back in