reset database from history view