Updated database class generator.