you can create primary key for name or both name and family ( depending on your requirements)
When you have primary key, you can't insert duplicate values. You will get exception when inserting. using
try.. catch[
^] you can check the data already exist or not.