Refactor active.sql script because Oracle thinks that events that use CPU are of an idle wait class