update script.py and index.html and db