Added relationship for pins and users plus migration