add getDbConnection to StatsLogCollector, add check for use graphite