Java project - Spatial DB Queries