Added writeToCsv in DBModel
Merge branch 'master' of github.com:ntnu-smartmedia/goldfish

# By Dag Einar Monsen
# Via Dag Einar Monsen
* 'master' of github.com:ntnu-smartmedia/goldfish:
  Fix bugs in DBModel related to fetching and inserting single preference value
Merge branch 'master' of github.com:ntnu-smartmedia/goldfish

# By Dag Einar Monsen
# Via Dag Einar Monsen
* 'master' of github.com:ntnu-smartmedia/goldfish:
  Fixed setPreference
PreprocessorStat now works, had to move if else clause down
Small fixes