Fix $db scope
Clean up PHP formatting
Switch from MDB2 to PDO

Per #253.
Use command-line ZIP, rather than PHP's ZIP

To reduce the parser's memory use, per #203.