Added dml to rebuild.php, changed lookup tests
Change in data structure to remove redundant record in data table
Changed order of create table command for dataset, fixed a bug in LookupFactory
Unit tests added for data factory, data classes changed for new structure, test data.sql added for rebuilding schema.