angularify the data to a couchdb resource