Write film_ids to queue
Refactor query execution