Pins CRUD function