removed geoloqi refs from all but search_db, now all calls to search_db are wrapped in deffereds.