cleanup
add couchdb implementation from @korczis