Merge "Use database to store ota generate history."