JSON, error reporting

* JSON error reporting is not settings dependend
Setup, dbms

* Added dbms to setup
Settings, reset

* Added cfg reset when environment does not exist
Template

* Template headers are not cfg dependend