more fixes for PDO