Optimized update_dashboard_stats queries for event log counts.
Version bump to 5.1.237