Fixed SQLite problem