database currency updating

Implemented the last feature of the app, i.e., currency getting updated
in the database when user changes configuration. All the expenses get
updated accordingly. Need to tidy the code next