handling and logging
Implemented robust logging using the logging module
Improved database connection with try...except...finally blocks for better error handling and resource management
Enhanced database initialization with proper error handling and logging