Use couchdb 1.5 and fix bug EOF

Use couchdb 1.5 and fix bug EOF #20