first draft of db aggregator