add db.py, rewrite README.md
Merge pull request #1 from renxiawang/master

add db.py, rewrite README.md