Changed saving by username to saving by user_id in csv files