redesigned model in order to simplify the creation of a CouchDb View used by forEachTuple method