CRM-11926 Improve error message on APi failure to include DB error message

This one should be the right one