Added update method for Cloud Database