Add max_pool_size and min_pool_size (#bnc 907669)

Make max_pool_size and min_pool_size configurable to avoid
TimeoutError: QueuePool limit exception