Implemented Id Generators PAIUD

Explicitly closed connections to prove pool timeouts.
Optimization.