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

Postgres connections as idle state still remain after app context has popped.
(It's same pull request with mitsuhiko's flask-sqlalchemy, but it seemed not being maintained.)