pci events report using SQL
move sql reports to separate module
fix wrong table name
add total row
only show ctable version of events report
Merge pull request #25 from dimagi/ctable

sql version of events report