Added settings migration function on app update and settings restore