MOTM-354: Server error when trying to access an attached file.

Adds inclusion of db_connect.php to Attachment class.