Made settings management use ID. Don't know why didn't before. When editing settings, display directly from database