More SQLite repository improvements