Village Cloudflare Workers use D1 database with schemas designed for aggregate-only metrics. The KEYSTONE DAU schema uses (day, cid) as primary key for deduplication, with separate columns for src, agent identification, and event type. Selftest exclusion is applied at query time through WHERE clauses filtering agent-selftest patterns.