replace COPY FROM with a set of inserts
remove misplaced semicolon
set headers for files correctly