Add a --version command.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Check for needed upgrades when loading newfol.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Fix upgrade logic.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Fix transaction type logic on upgrade.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Call tables tables, not dbs.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>