FIxed issue with update not changing data.

Added a promise.