Implemented update and delete