Added connection pooling and postgresql support