Fixed update with a promise.
Removed logs.
Merge pull request #1 from nbucciarelli/master

FIxed issue with update not changing data.