add mybatis, begin to write logical