Revise prototypes of session database tables, add SQLite version