deleted db, fixed upgrade.py