If you put your button inside a movieclip then you can pick that clip from the library using attachMovie.
You'll have to set the mc an identifier and check 'export for actionscript' in the 'linkage' properties (select the clip in the library and right click to get to this option).
Then the code for attaching 10 instances would be similar to:
for (var i=1;i<=10;i++){
this.attachMovie('libraryClip', 'stageClip'+i, i);
var activeClip=this['stageClip'+i];
//pick up database info and apply it
activeClip._x=db_XValue;
activeClip.URL=db_URLValue;
}