def connect(self):
        """
        Starts the mongodb connection. Must be called before anything else
        will work.
        """
        self.client = MongoClient(self.mongo_uri)
        self.db = self.client[self.db_name]