More bug fixing

Making it compatible with the new PDO ways.  My website works, at least
for the most part... so that's a good sign.  Still need to get more unit
test code coverage.