database
Merge pull request #7 from luoyfan/master

add some codes related to database