Reset the database connection at the start of every copy, since nasty errors seem to creep in when it's long-running