Phew. HTML parsing and database insertion is complete (and mostly flawless)