Cannot query the database SELECT session_id, session_time, securekey FROM sqlite_main_sessions WHERE session_id IS NULL