convert scripts to new DB layout
hopefully fix DW date conversion
many fixes to preprocessors
Merge pull request #12 from EUMSSI/db_layout

Db layout