fix pdo database