Regularize pipeline, improve output even more.
Add parameter to set db file on command line.
Use builtin begin/commit