I believe this script fails to extract the first article on a line, at least for the somewhat older 20050309_cur_table.sql perhaps for more up to date tables as well.

Adding ` quotes, as in the following line seems to fix this problem:

s/^INSERT INTO `cur` VALUES //gi;