input: def create_table_of_contents(database_connection, html_template: str) -> str:
      """
      Given a database connection and an HTML template, create a HTML page that displays
      a table of contents from the data stored in the database. This function uses a
      server-side language to query the database and retrieve the data, and JavaScript
      to render the table within the HTML page.
      
      >>> create_table_of_contents(some_database_connection, "<html><body><div id='table'></div></body></html>")
      "<html><body><div id='table'><table><tr><th>Content</th></tr><tr><td>Chapter 1</td></tr></table></div></body></html>"
      >>> create_table_of_contents(another_database_connection, "<html><body><div id='toc'></div></body></html>")
      "<html><body><div id='toc'><table><tr><th>Content</th></tr><tr><td>Introduction</td></tr></table></div></body></html>"
      """
output:     cursor = database_connection.cursor()
      cursor.execute("SELECT content FROM table_of_contents")
      rows = cursor.fetchall()
      
      table_contents = "<table><tr><th>Content</th></tr>"
      for row in rows:
          table_contents += f"<tr><td>{row[0]}</td></tr>"
      table_contents += "</table>"
      
      html_output = html_template.replace("<div id='table'></div>", f"<div id='table'>{table_contents}</div>")
      html_output = html_output.replace("<div id='toc'></div>", f"<div id='toc'>{table_contents}</div>")
      
      return html_output