Background I have developed a python gui using Pyqt5 that interacts with a Sqlite database. The program runs smoothly when run from terminal but performance is