Adding foreign key method