Nevermind, after changing session creation into this:

SQLiteConnection.CreateSession(SQLiteConnection.Database);

it worked. Problem solved.