Spatial database