Beginning of API; spike to test reading training set from mongoDB