upgrade records per event query