upload db connection code and test code
Merge pull request #5 from ycj28c/master

upload db connection code and test code