Revert "use ThreadLocal not dynamic binding, AND don't return the connection to the"

This reverts commit b9e966be51b00a5077b771fea02bbf7a601e4433.