database tweaks and normalized rest packet attributes.
Merge branch 'master' of https://github.com/witboston/CS673 into NIGEL_BRANCH