fix mostUsedQueries view