unixODBC sql_finish_query problem