GetMessagesByParentId implementation, Bit strings converted to hex in queries, Result sets