Increment the accesses and downloads counter for this resource
Parameters
id
Returns
checkAttachmentRows()
checkAttachmentRows() :
1. Check for any rows in table that do not have attachments – if found, delete the row
2. Check for attachments not in the table – if found, delete the attachment