Finnished History

Finnished history database and added functionality to the other
activities.