Adding device attribute to database.