implemented the D in crud