Added config + connection pooling.

Small changes.