switching pg import code to use COPY command rather than multi-row inserts