Implement updata, delete function