modified dbscan; modified tfidf to insert updated tags into the db