make DbObjects use the existing id if it is a non-empty value, else generate UUID