Fix for the pyinstaller build, but there are still problems relating to the...
Fix for the pyinstaller build, but there are still problems relating to the database. We may want to use a different backend instead of sqlite3 and i'm planning to rewrite this so i'll leave this as is for now