queries using indexes update