At first glance "properties" should just be an array not a DS.
So this:
Code: Select all
num_properties int(10);
properties varchar(50) dim(10);
Code: Select all
num_properties int(10);
properties varchar(50) dim(10);