Create pass table_name as parameter