Move mongo connection settings to config file;

- Add debug env variable