Aggregate data per database. Ignore some pg_stat_statements entries such as begin or deallocate