cleaning up the pdb copying