gitserver servermetrics: use faster statistics tables
Created by: mrnugget
This makes use of the statistics tables introduced in #40577 to make these queries faster and reduce load on big systems. See this Slack thread for more context on how heavy these queries can become.
Test plan
- Existing tests