1.refactored code
2.implemented HistoryActivity (history list)
3.refactor database schema, modified SQLite factory methods