First version of persistent connection pooling done