add IntelliLifeDB class
fix device rotate error