Work in progress on pgsnapshot

stripped out most apidb specific sql

started on node call, worked most of the way there but looking at
how to avoid changeset tables