Ensure we use the same version of sbt.
Fix database usage errors, first cut at saving tree to database (though no restore).