add postgresql history file