move status_history to table logs