Show error message instead of sql error on name uniqueness restrction violation (bug 43656)

Change-Id: I2fc624570d4db5cba4f707cb90efa33efbb895ea
Merge "Show error message instead of sql error on name uniqueness restrction violation (bug 43656)"