Merge pull request #221 from mzry1992/refactor-db-layer

Config protocol buffer
Auto generate DAOs by entitys