first working postgres aggregator