Fix for better primary key constraint error checking (#468)