The ship's fMetaDatabaseID is located in the following class:
class tShipScriptDescription
{
public:
tShipScriptDescription();
tShipScriptDescription( eTeamID teamID, const std::string& className, eClassTypes classType, const std::string& customName ,int32 metaDatabaseID);
eTeamID fTeamID;
std::string fClassName;
eClassTypes fClassType;
std::string fCustomName;
int32 fMetaDatabaseID;};
You can access this class from the parameter of each team's ::createnewship() method:
void tStarBaseSeedTeam::mCreateNewShip( const tShipScriptDescription& shipScriptDescription )
I hope that helps.