Update method getDataFromJson for bulk insertion into database