fix some issues for ase-db
fixed path issue in psp
added check for an empty contcar