updated within query to use ST_Distance