updates table for