MyISAM does not support foreign key concept and is much faster. At least that was the case sometime back in MySQL 4 and I am sure it continues in MySQL 5 as well but is not 100% sure.

Now about your issue I see that your name should be unique and so having unique should do it.

Let me know if I understand it right