Ticket Connection Pooling

Can anyone check if the code seems alright