def descriptionsFuture: Future[JSONCollection] = database.map(_.collection[JSONCollection]("descriptions"))
def view(id:String) = Action {
val mongo_find_query = Json.obj("_id" -> Json.obj("$oid" ->id))
val resultFuture: Future[Option[JsObject]] = descriptionsFuture.flatMap { descriptions =>
descriptions.find(mongo_find_query).one[JsObject]
}
Ok(Json.prettyPrint(Json.toJson(descriptions)))
}