Simplify settingsStmt for smoother migration in settings