Renamed querydb to queryindex.