Added a service for database statistics in the api, and added a db stats dashboard to the admin