Initial implementation of the query runner; it'll fall down when there's enough records so will eventually need to be more complicated
Implement user opt-in/opt-out