def METHOD_NAME(name):
  """
  Return the configured database password.
  """
  password = DATABASES[name].PASSWORD.get()
  if not password:
    password = DATABASES[name].PASSWORD_SCRIPT.get()
  return password