quick-n-dirty fix for #515

Need to refactor `revenue_summary` table, etc.