implemented saving of element properties back to couchdb database