near and within queries on all dbs