src/types.db: Replace all COUNTER data sources with DERIVE.