Added primary key violation checking using a key/value store for high-speed lookups
Use primary index when doing lookups with a primary key component
Removed debug code