old_contents: import random
  from flask import Flask, render_template
  app = Flask(__name__)
  
  @app.route("/")
  def komigendetblirkul():
      with open("komigendetblirkul.db") as f:
          db = [line for line in (line.strip() for line in f) if line]
  
      phrase = random.choice(db)
  
      return render_template("komigendetblirkul.html", phrase=phrase)
  
new_contents: import random
  from flask import Flask, render_template
  
  app = Flask(__name__)
  
  
  @app.route("/")
  def random_phrase():
      with open("komigendetblirkul.db") as f:
          db = [line for line in (line.strip() for line in f) if line]
  
      phrase = random.choice(db)
  
      return render_template("komigendetblirkul.html", phrase=phrase)
  
  
  @app.route("/<phrase>/")
  def user_phrase(phrase):
      return render_template("komigendetblirkul.html", phrase=phrase)
  
subject: use path, if any, as phrase instead of db