Cleaned up how tables were made. Added method to add a history object to the table