Fix MySQL unique constraint error message parsing