Actually pass the conneciton to postgres copy