[Admin Analytics] fix users DAU stats
Created by: thenamankumar
https://k8s.sgdev.org/site-admin/analytics/users
The DAU/WAU/MAU stats on the admin analytics users statistics page are wrong. The numbers themselves seem right but they are getting mix-matched with each other. MAU > WAU > DAU (should be).
In the SQL query we are using UNION ALL and scanning rows based on their index, considering 0th row as DAU and so on...
UNION ALL doesn't guarantee any sorting order and I tested it as well.
Fixing the scanning logic in the PR.
Test plan
check the diff