wip: couchdb port