Adding a view to query data by device, sensor and timestamp using a composite index as stated on https://wiki.apache.org/couchdb/EntityRelationship#Querying_by_multiple_keys