Added a promise and simple syntax option for updateEntity.