fix typo
add txpool only for postgres connections.
write default config also when the db connection fails.