Index is a database query, and refresh updates the query