Saves db conn info (if possible) to local file system.

This is mainly to make it less painful to restart. In future,
I should store the jobs and queries, too.