This commit refactors the main application window into a `MainWindow`
class. This improves code organization and facilitates unit testing
of the UI.
- Created `MainWindow` class inheriting from `ctk.CTk`.
- Moved UI elements and logic into the `MainWindow` class.
- Modified methods to use the Database and PDFExporter classes.
- Implemented load_log_entries to refresh log entries