Moved write out of the socrata generic requests function and changed to a default of append mode.