df_to_json and update in writetable