fix it properly this time
more mysql changeover to pdo