create device if no device in db