tidy up package table a bit
tidy up aggregateresult table