add logging statements
streamline PostgreSQL checking logic
Update default-sample.cfg