Setup/teardown DB for API round-trip test
Make the workqueue more queue like
Pull looping out of processWork into it's clients
Test flush work first, so we can know what to expect
Fix the PostgreSQL store tests for work queue