How do I link swf to database asp

Hi All,
I am in a fix as I have a swf file to be linked to a database asp.
Also I want my visible movieclips on stage to be listed in a output file.

As I don’t have any idea of how to do this, any help is appreciated.

Thanks in advance.