add editable fields and update the database when changed