Check that primary key doesn't already exist