Implements foreign keys (not only references)