Use the script scan_and_add_pages.php to scan all .html/.php pages and insert them into the database.
scan_and_add_pages.php