input: Write a function to determine if it is possible to create a HTML page with a table of contents based on data stored in a database. The function should return True if it is possible to create such a page, and False otherwise. If no database is provided or the database is empty, return True.
  assert create_table_of_contents(True, ["section1", "section2", "section3"])==True
  assert create_table_of_contents(True, ["section4", "section5"])==True
  assert create_table_of_contents(False, ["section1", "section2"])==False
  assert create_table_of_contents(True, [])==True
  assert create_table_of_contents(False, [])==True
output: def create_table_of_contents(database_exists, sections):
      if not database_exists or not sections:
          return True
      return False