[rubis] (bug-fix:major) Fix id computation for DB entities generation.