Fixed some bugs in pgbouncer management.