Bug when updating SQLite database.