Fixed paging for SQLite