Better handle displaying DB integrity errors