Use Datastore::run_query instead of Datastore::run_simple_query.
Offline scripts: Add support for view selection.