managed to get couchdb collection