Fixing some issues with PDO.