add query and update operation.