implemented DELETE, UPDATE sort of works