update namedquery
update to have id