Add mongoDB connection + JSON -> array conversion