added Pin_id to pics and managed associations to work