Update pass table_name as parameter