def setDatabase(self, database):
        """
        Sets the database associated with this thread to the inputed database.
        
        :param      database | <orb.Database>
        """
        self._database = database
        if self.thread():
            tid = threading.current_thread().ident
            self._databaseThreadId = tid