Minimal testing of the ImageUploadApplication and HistoryActivity.
Extract DAO methods to a different class.
Integrate Mockito.