added example test case
removing trivial test example
added unit test for db handler test
Added tests to db handler test.
refactored date merging logic out of history plot activity