Leveraging the power of spatial databases