Added foreign key queries
Removed system out statement