Implement a new monthly export statistics feature that records and aggregates export operations by month, including total exports, successful exports, and failure counts. The change adds a new `export_statistics` table with columns for month, year, total_exports, successful_exports, and failed_exports, along with a stored procedure to increment counters atomically. The analytics dashboard now displays a monthly export performance chart using this data.
Implement new aggregation logic in the export statistics module to compute monthly totals grouped by region, replacing the previous flat summary. The change introduces a `compute_monthly_stats` function that processes raw export records and returns a structured dictionary with per-region counts and revenue.