updating queried model