Save all history
Use best avilable output format for postgres