Gets basic foreign key feature working