Added possibility to choose not to copy contents along with table headers

fixed transaction speed (from 10 queries/s to 3000+)
various other bug-fixes