Tracking foreign keys