dbupdate.py and models.py updates