SQLite is used as the backend database for WebKit features like cookies, localStorage. In iOS 5.1, the default directory for SQLite databases used by WebKit changed, but the path is not updated when an app is upgraded, causing the databases to no longer be found. Developers need to explicitly set the database directory to avoid this issue and ensure local data is not lost when users upgrade their device to iOS 5.1 or later.