update script.py, index.html and db