database update and redo relevant the view.py