refactored postgresmodel and postgresmodelgenerator
added files.