first part of adding foreignkey