Implement some foreign keys slightly