Fixed SQLite threading error in karma