fixes #7494, #7517 export exclude trashed and include all records