updated sql querys to get spatial data