Changed all to PDO select statements