Update tree and other changed attributes in single SQL-query.