made foreign keys on m2m table not null