update couchdb header

View and data are now stored in the same document