new update for json fetching and inserting