Fixed bugs in purge_multiple_messages/5 from ODBC-backend.