Fixed history table in db