stat-builder connected to stat-db