odbc interface change to version 2.0 and add db module for gateway