Update Query Handler