Fix issue #196: make memory provider DBs sharable