Menu now sort of works.
Saving and retrieving preferences now works, but menu does not.
Menu now works
Removing prepare_dbhash calls
Merge pull request #414 from einhverfr/master

Fixing saving preferences