Change the usage of DBClientAction::addAction().

Previously the function returns the ID decided by the DB. Then
the caller have to substitute it in ActionDef::id if needed.
In the new version, addAction() does it.