checks for presence in db, calls api if none and adds the json to the db