Updated mybatis config, wrote the DeviceMapper.xml