Create purchased filter

When accessing stories by account id, if the 'purchased' filter is used, only stories that have been purchased will appear, and they will be sorted by how many times they have been purchased.
fix merge conflicts