Some patches for http://www.lightbox.ca/pg2mysql.php