Add update and query