history table design