First drag-drop a bed in the model. Then use the treenode.copy() method to create 100 beds. If you save the locations of the bed in the global table you can set their locations to the defined locations in the table using object.setLocation() method.

Here's a sample code
Object Bed = Model.find("Bed1"); // Manually Created Bed
int NumBeds = 100;
string TableName = "GloablTable";
Table LocationTable = Table(TableName);
for(int i=1;i<=NumBeds;i++)
{
Object NewBed = Bed.copy(); // Creating new bed
NewBed.name =LocationTable[1];
NewBed.setLocation(LocationTable[2],LocationTable[3],LocationTable[4])//setting locations
}Creating directly from the library using code is not loading the 3d shape of the bed - can be a bug. That's the reason first manually drag-drop a bed and then use the code abovementioned code in the scrip console to create the objects.
The SQL query method using INSERT INTO also not loading the 3dshape of the bed after creation.