database added.

Changes -
- UI design.
- added database.
- sharing/starring/deletion included (not yet implemented).
- Starred page added (starring not implemented).
- Modified Adapter to use HistoryEvent objects.