Fix SQLite3 generator: add missing indices.