added function to add all pins to map from databse