Sam
I had the same problem to retrieve the back-end dbname...
If you don't switch Connection dynamically at run-time,
you can use the function I've posted here, and modify it a bit, just to retrieve safely the connectionID name for a given filelist entry
Old Fashion connections - How to retrieve the back end DBNAME for a given entry in file-list ?
Again, I don't now if these attributes used, are updated if you perform db-switch connections on the fly.. I guess not.. never tested it. so if that is your case. double check it..