res/sqlite/deltaiota.sql: add foreign key for sessions to users, add database sqlite3Setup method