fixes #6275 include activities and cases in log report; also update log count so we generate FROM clause using the native function
Merge branch 'dev' of github.com:nysenate/Bluebird-CRM into dev