Fixed ODBC reference errors