fixed event hql. Added all ways to get all types of events.