def METHOD_NAME(self, **kwargs) -> str:
    if not self.is_auto_db():
        raise ConfigurationCallException(
            f"Cannot get configuration string: application {self.name} has no database enabled.")
    if self.db_type == 'mongo':
        return f"mongodb://{self.harness.database.user}:{self.harness.database['pass']}@{self.db_name}:{self.harness.database.mongo.ports[0]['port']}/"
    elif self.db_type == 'postgres':
        database_name = kwargs.get('database_name', self.harness.database.postgres['initialdb'])
        return f"postgres://{self.db_name}:{self.harness.database.postgres.ports[0]['port']}/" \
               f"{database_name}?user={self.harness.database.user}&password={self.harness.database['pass']}"
    elif self.db_type == 'neo4j':
        return f"{self.harness.database.neo4j.get('ports')[1]['name']}://{self.db_name}:" \
               f"{self.harness.database.neo4j.get('ports')[1]['port']}/"
    else:
        raise NotImplementedError(
            f'Database connection string discovery not yet supported for database type {self.db_type}')