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

Auto generate DAOs by entitys
Merge pull request #223 from mzry1992/refactor-db-layer

Add criteria tools