[server] Use a new verison of update() for DBAgent::updateIfExistElseInsert() and the concerned methods.