code: def connection(self):
          
          connection = self._get_connection()
          if connection:
              return connection
          else:
              message = "GTF database needs to be created"
              if self.install_string:
                  message += ", run: %s" % self.install_string
              raise ValueError(message)
docs: Get a connection to the database or raise an exception