updated models with attributes from inspectdb and the script to generate...

... them [generation script fixed]