changes direct mongodb access from formatter to a simple rest-api