added DB history,need to update do_history