Injecting the attributes from the pin saved in the database into the infobox