Adding perm. props. for running def and validity

Current research and validity are now stored as properties. Properties
are dynamic and stored in the models, while settings are static and
depends on the application definitions.
If the applications crashes / was bounced, it should restart using the
same properties as before, hence offering a continuous progression for
multidays researches on Heroku.

Remove use of generator for Heroku.

PostgreSQL refuses current DB config. Changed.

Rollback to old db schema. No reason not to work.

The crashes received now does not match anying previous ones,
and the schema for this part of the application did not change.

Rollback again for postgreSQL
Correcting sql for defs