Enabling DB storage (in progress). Slightly refactored RunMetrics.