Add tool to dump database.
Possibly fix time extrapolator.