Add a bit more context for primary key exceptions.