now writes number of events to database at the end of the run
merged aaron-dev
Merge branch 'master' of https://github.com/mwsmith2/slac-daq
pulling