clean-up code in data generator and DB access
Merge branch 'master' of https://github.com/boyshawn/CS4221