started to implement a rather shitty couchdb support