Robustified all analytics queries to handle empty datasets and NULL values. Restricted AuthMiddleware to /v1 group only.