Sequence insert hacking.
Small refactoring of graph builder.
Adds separate db for testing, changes some bugs in payload processing.
Minor changes to models, new concern, new tests.