Flatten customersId query so that the index is used

- MongoDB doesn't seem to use the compound index for these fields if
  using a nested query object. Flat seems to work.