def get_setting(name, default):
    try:
        setting = Setting.query.get(name)
        return setting.value_decrypted
    except AttributeError:
        return default
TODO encrypt using secret
dataset/ETHPy150Open nkuttler/flaskwallet/settingsapp/helpers.py/get_setting