adding more options for \COPY as kwargs and added try/except block to gracefully handle fail over to sql.extend()