Refactor PG connection so that it is opened for each transaction.
Update example config file.
Update app so that respecting the time restriction is a config setting.
Put try except around config setting.
Merge branch 'hotfix/Fix_pg_connections'