Modified insert funcs to take json value as args