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
first version of schema validation
Merge pull request #23 from thebyrd/david-bowery-style-db

ported db queries to new style