update the query iendswith