Added some more file error checking to the wc db generator