SpatialGrid code updated.
StatialDatabase example finished.