def set_param(current_scene_db, parameter, value):
    """set or update an parameter variable"""
    from src.praxxis.sqlite import connection
    conn = connection.create_connection(current_scene_db)
    cur = conn.cursor()
    set_param = (
        'INSERT OR IGNORE INTO "Parameters"(Parameter, Value) VALUES(?,?)')
    upate_param = 'UPDATE "Parameters" SET Value = ? WHERE Parameter = ?'
    cur.execute(set_param, (parameter, value))
    cur.execute(upate_param, (value, parameter))
    conn.commit()
    conn.close()
