title: Create a user friendly message mysql error
body: <p>What would be the best way to send a <code>MySQL</code> error message to the user.<br>
  At the moment the messages come through like this <code>"Error Duplicate entry 'onlineforu ltd' for key 'customer_company_name_2'"</code> which is ok for myself.
  I would like a system that gets the error and would return a reply something like this <code>"onlineforu ltd already exists"</code></p>
  
  <p>Thanks</p>