Use 0 for no session id

SQLite will start with row ids from 1.
Remove some unused constants
Rename local hidden column and reorder projection
Some more clean up of constants
Hide insertComment call method behind method
Wrap session creation in database transaction