Update class Query