Added update functionality

changed code to manually set id and code to update basedd on that id