Merge pull request #5 from xiaoqin2012/master

merge from xiaoqin
refactor code to make interface to PersonProfile more congruent with Java standard practices
Merge pull request #10 from piaw/master

make code compliant with Java standards for interfacing with database