start to integrate with couchdb