Migrated Update function into save function, save now handles both create and update