Add shared_db_wrapper
for creating long-lived db state
#258
+151
−4
shared_db_wrapper
for creating long-lived db state
#258