fixing range_query to actually...work for xform submissions