Compatibility fixes for unit tests. PHPUnit will save global state with ...

...serialize/unserialize, but PDO connections can't be serialized, so they should be discarded.  The unit test setUp() method will handle the db reconnect for us.