fixed possible PDO issues