Changed from legacy to PDO