The Cubes Framework: Three-dimensional data stores