Added relations for SubmissionAttachment and has_(relation)? functions