Added an index for the deleted field for faster filtering.