input: from typing import List
  
  def create_table_of_contents_html_page(database_data: List[dict]) -> str:
      """ Create an HTML page that displays a table of contents using the data stored in a database.
      The function should return the HTML content as a string.
      >>> create_table_of_contents_html_page([{'title': 'Chapter 1', 'page': 1}, {'title': 'Chapter 2', 'page': 10}])
      '<html><body><h1>Table of Contents</h1><ul><li><a href="page1.html">Chapter 1</a></li><li><a href="page10.html">Chapter 2</a></li></ul></body></html>'
      """
output:     html_content = "<html><body><h1>Table of Contents</h1><ul>"
      for item in database_data:
          html_content += f"<li><a href=\"page{item['page']}.html\">{item['title']}</a></li>"
      html_content += "</ul></body></html>"
      return html_content