Taking short documents

Rearranged some code and started filling the database with articles and
polarity for each article.