This commit creates a dedicated entry point `main.py`, instantiates
the application components, and handles the WM_DELETE_WINDOW protocol.
- Removed window creation and mainloop from previous file.
- Created a dedicated entry point with basic error handling.
- Implemented an on_closing protocol to properly close db and exit application
- Implemented the loading of database objects.