updates for msgheader msgdata and queryresult