erlang odbc compatible query