first working version, stores tf-idf bags of words with each patent in the db.