CurateIndex: Migrate all queries to Datastore::run_query.