Fixed SQLite bug that was causing a crash.