Add ability to configure connectionpooltype.