progress on adding history database