update queries for indexes to be set