Turn foreign key into many-to-many