code: def database(self, name=None):
          
          # TODO: validate existence of database
          if name is None:
              name = self.current_database
          return self.database_class(name, self)
docs: Create a Database object for a given database name that can be used for
          exploring and manipulating the objects (tables, functions, views, etc.)
          inside
  
          Parameters
          ----------
          name : string
            Name of database
  
          Returns
          -------
          database : Database