Add device to database working