Set `poolclass` as `NullPool` when `pool_size` is 0 for psycopg2 driver.