Update Postgres adapter to match Panoptes' tables

Add scripts to generate data update sql statements in adapter