added ugly logic to make sure to only set changes files in the SQL update for USER