Improve duplicate key error message