added mongodb connection