prune extraneous columns and constraints from postgres setup sql