How to refer the foreign key in correspond table to reference table