Added insert functionality
Added update functionality