use table name to get the table