Added foreign keys to DB