remove references to non-existent file, and make sure .postgresql directory has the right owner