some json config
clean up for pg
get more pg stuff working