Merge pull request #90 from jackfengibm/stats_db_s5939

added sqlite support for stats
fixed test cases
fixed test case