basic couchdb functionality added.