func (m *MoviesDAO) Connect() {
	session, err := mgo.Dial(m.Server)
	if err != nil {
		log.Fatal(err)
	}
	db = session.DB(m.Database)
}
Connect - Establish a connection to database
package dao
import (
	"../models"
	"errors"
	mgo "gopkg.in/mgo.v2"
	"gopkg.in/mgo.v2/bson"
	"log"
	"net/http"
)
type MoviesDAO struct {
	Server   string
	Database string
}
var db *mgo.Database
const (
	COLLECTION = "movies"
)