Added Json and Mongo functionnality