Change fk construction for many many middle table