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