update query method update