creating the crud functionalities