updating named query