Update only languages with translation on index rebuild

Signed-off-by: Michal Čihař <michal@cihar.com>
Make rebuild_index work on large databases

We need to process the data by chunks, not load it whole into memory.

Signed-off-by: Michal Čihař <michal@cihar.com>