code: def db_uri(self):
          
          output = self.get("DATABASE", subcommand="pg:credentials:url")
          match = re.search("(postgres://.*)$", output)
          if match is None:
              raise NameError(
                  "Could not retrieve the DB URI. Check for error output from "
                  "heroku above the stack trace."
              )
          return match.group(1)
docs: The connection URL for the remote database. For example:
          postgres://some-long-uid@ec2-52-7-232-59.compute-1.amazonaws.com:5432/d5fou154it1nvt