added sqllite database to keep device status information