fix use of pdo in import/populate scripts