get latest articles from DB, setup environment for mahout