changed a small thing in addhistory in db.py