Ported gui code to Python3, set db module as home for database.