use function result_to_integer from ejabberd_odbc
fix indentation in odbc_queries modules