[TODO-LIST #008] Yanmin:add a services lay and did some refactor.
[TODO-LIST #009] Yanmin:use Mybatis to replace jdbc code.