Use binaries in ODBC

This PR contains changes suggested in https://github.com/esl/MongooseIM/issues/122