Minor update to the indexes on the event table
Add sample SQL for udpating the total counts for all subjects.