Update Postgres adapter to match Panoptes' tables

Add scripts to generate data update sql statements in adapter
`pg.exec("").collect do |row|`
This is a typo, right?