commitUpdateAttrValue: DELETE was unconditional

In some automation scenarios there are too many calls to
commitUpdateAttrValue. Each call was leading to a delete query, which
appeared in mysql binlog.
Now only nessessary queries are performed (update, insert, delete)
updateAddress: DELETE was unconditional

In some automation scenarios there are too many calls to updateAddress.
Each call was leading to a delete query, which appeared in mysql binlog.
Now the delete query is executed only if nesessary