1. improve class DownloadDB for drm fulfillment;
2. add unittest.