Merge pull request #8 from ashish343/sjain7

database integration
subOrder generation