added update method in dal