added management command for saving of current data in its corresponding history table