Resolves various issues with the error reporting during db connect or query execution.
Adds suport for 2 config files loaded at startup using module jsonconfig. The one config
(config.json) is for the app confiruation and the other (queries.json) is for the db
monitoring queries. Currently there is only support for PostgreSQL.