Insert db, js cleanup