settings done, but error saving to database

the fields are empty upon refresh