implemented sql connection pooling