/outputs now returns a JSON encoded list from mongodb