new PDB input/output script