Use an Executor for serializing queries.