Data Structures for Moving and Spatial Object Databases