Added Mongo integration. Fixed scripts and configs