Update the legacy mysql_model_gen script to work with the new model system.