added mongodb support and changed conf files