package modelhelper

import (
	"koding/db/mongodb"
)

var Mongo *mongodb.MongoDB

func Initialize(url string) {
	Mongo = mongodb.NewMongoDB(url)
}

package modelhelper

import (
	"koding/db/mongodb"
)

var Mongo *mongodb.MongoDB

func Initialize(url string) {
	Mongo = mongodb.NewMongoDB(url)
}

func Close() {
	if Mongo != nil {
		Mongo.Close()
	}
}

Add mongo session closer to model helper
SocialTests: Add mongo session closer to model helper
