def get_password(connection, digest):
    """Query the database for the digest and return the plaintext password.

  Parameters:
    - connection: The connection to the SQLite database.
    - digest: The digest of the plaintext word.

  Returns:
    - The plaintext password associated with the given digest.
  
  """
    cursor = connection.cursor()
    _t = digest,
    cursor.execute('SELECT word FROM rainbow WHERE digest=?', _t)
    return cursor.fetchone()
