update postgres template to allow for dbname

The default is to look in the `postgres` database, and will not collect
`relations` data if specified outside that database.
doc update