synchronize refresh method, fix offline use of getSetting, setsetting, add user,key index on Setting entity