Updated to store pins in DB for small and big pins