ensure any message queries have an index