updated offsetSet of AttributeCollection
improved attributecollection test
fixed mysql script generation portion