changed retrieve() in db.py, compare.py can now really compare things from the db, notice the commented out part in main, it will help.