Fix cursor issue; add topic to JSONCommit

Fix cursor issue in determining if any projects are left
Store and retreive topic when listing commits

Change-Id: Ia50fcfbca47e649f3e0a392830fc2759981881a0