Add support for sparse entries in SQLiteDB.
Add a test for the sparse entries.