fix table_name deprecation