Writing tfidf storage for postgres.