Added insert and delete functionalities