PDO errors log upgrade