Adding crud functionality