[FIX] upgrade conditional db generator.