-- exposed db close
-- added the (somewhat insane) get-as-map
-- added put-map