added foreign keys to DB