Move portDB attrs to loop() local vars.

cf. inline comment