updated database to new pdo