Use database to store ota generate history.

Add functions:
- Now the ota package generate history is stored in a database.
- Job status page will show some basic info of the jobs.
- Job detail page will show a detailed configuration.

Test: Mannual tested.
Change-Id: Ia98763e783e8d9c903ac8f5c137719df8527d204
9 files changed