Primary key value lookup not working

Discovered that there was leftover fixture data creating duplicate rows in the database and yielding incorrect results. Model needs to be changed so that Equipment.Name is required to be Unique.