Repart all errors

Changed error management code to also report non-fatal errors from the mysql adapter.
This includes malformed queries, missing tables or columns.

@guyellis would you like to give a check on this?