add basic mongodb connect code