(fix) Applying joe's fixes
Many thanks to @joe59 for helping me sort out a patch and the subsequent fallout.
From ground zero, this will officially install the cockroachdb schema and setup the indexes.
I have a mostly working installation from groundzero