changes to QueryEvent model and admin [#76727982][#76724392]