#853: history dialog events added.
#853: history db structure for sitemaps added.