Refactored update-api and update-sentiments: condensed swap! transactions