#308 Rename the attachment store folder before delete

When deleting a database, renaming the attachment store folder if it exists and delete it in a dispatch queue. #308.