Move db handling to separate class
modify README.md