forEach.
Removed dbs; I don't think they will be necissary for transaction support.
Benchmarks working again.
Some optimizations. Start of transaction support.
Simplify toArray.
Simplified counting.
Compute means.