There are various ways of dealing with this. One, the easiest and perhaps even the fastest, is to set up the IPTC stationary pad with the copyright info you require and then apply this to all files. (I suggest doing this in batches as 40,000 images is quite a lot...). Another solution would be to use Phil Harveys exifTool, a command line tool that can manipulate the metadata of many file formats.