Fixed a durability issue that would cause data corruption.  Added improved testing for that scenario.  Added some tests for multithreaded DB access.

Signed-off-by: gburgett <gordon.burgett@gmail.com>