completed get settings and save data in DB