ODBC layer support

Necessary tests changes for esl/MongooseIM#275