there is a copy_to to copy table data into file like:
cursor.copy_to(fp, \'table_name\')
but I don\'t need