customer_stats_report: use db exceptions and parameters