Also: why a map and a sum? Why not a database sum?