Move portDB attrs to loop() local vars.

I'd probably have a ```func (d *portsDB) allocations()map[string]uint32``` so you can validate the complete state after an alteration.