modified to use foreign key statement
Merge pull request #11 from takatama/foreign

modified to use foreign key statement