changes to query to fix grid selection

force correct query for grid with an ugly check for i_cell (hardcoded text)

switch from requiring the detector bbox to overlap the area bbox (&&
operator) to requiring that the detector have a distance of less than
15 km from the area.