Add 'pgid' and 'json' to db
Get json for test cases from db
Add pgswithobjects for logging test
Add pg logging test
Use pgid in db so that now don't fail trying to access an object that isn't there