Use the new DDB API for querying.