Fix issue #196: make memory provider DBs sharable
Fix review nit, add test
Merge pull request #197 from humphd/issue196

Fixes #196