Fix classification error when a class exists but has been untrained to be empty of words.
Handle connection to Mongo via a URI instead of seperate host, port, db, username and password.
Merge branch 'untrainfix'