[DBTablesMonitoring] Use a new code fashion to do transaction in pickupAbsentHostIds().