Use copy for faster database inserts.