expose pg for downstream access
support setting pg instance
extract db module
remove utils.mosql
add db
Merge pull request #48 from prestonp/master

expose pg for downstream access