Changes to add_site script

Put upload before save to ensure efficient save.