update and delete now working