use api for checking if instance with given d2d-id exists before adding it to db