Update DatabaseLayer.py
improved index.html
TF-IDF and client updates