addPin in the backend