Update host attributes in DB in sequence

Previous way - concurrence - could cause deadlock in the database
(reported by PostgreSQL DB adapter) and the deployment would fail.