added standard postgres query to PreAggregate
problems still with generation of gkey
results deviate with pa grid query