Add concurrency test.
Clean up postgres insert statement.
Isolate blob compression machinery and fix correctness unit tests.