repair ODBC abstraction layer

Can we move the integer conversion to `odbc_queries` ? 
the same situation: 
https://github.com/esl/MongooseIM/pull/275/files#diff-07fe87020676eeb2c3fca603d504a84fL56
https://github.com/esl/MongooseIM/pull/275/files#diff-c2f47bb3624ee40d6e7fcb466e88d747R145