crud operations for pins