Rename the attachment store folder before delete (#308)

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