Clean up database in WidgetPreviewLoader

Change-Id: I498317538441c973334362b58714d2f4392933db