Base update code from csv