program7 rollups and sql functions.