add db and model class
fix DB config
Merge pull request #3 from sallon88/master

add db related classes