[minor] fix session db persistence
Merge pull request #888 from pdvyas/fix-sessions

[minor] fix session db persistence