ported db queries to new style

v1 for new db wrapper (get/put)

migrate trashwang to bowery style db calls

fixed db driver to support more query types

updated getPartyById node

saving broken code. getPartyById isnt working

finished porting everything to bowery style db