added export-diffs

also filled some missing pg methods