Directly added metric database to use within javascript. This will be pulled out into a service at a later date