Parallel compute

Major database change, now uses a flat table for invariants. Also most computations are doled out to a parallel process, should be easier to get this to scale to a cluster.