adding mongodb connection