Added ODBC connections

Plus improved error handling