expose database get/put/keys to other packages
move rpc code to a separate source file
get rid of multi-db open capability, just open "the" database when needed