Improve error message when an odbc error occurs

Improve error message when an odbc error occurs

Fixes #228